/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package persistencia.mapeo;

/**
 *
 * @author Evision
 */
public class AttributeMap {    
    public static final int PRIMARY_KEY = 1;
    public static final int FOREIGN_KEY = 2;
    public static final int DESCRIPTIVE = 3;

    private String nombre;
    private String tipo;
    private int clave;
    private ColumnMap columna;

    public static int getPrimary_Key(){
        return PRIMARY_KEY;
    }
    
    public int getClave() {
        return clave;
    }

    public void setClave(int clave) {
        this.clave = clave;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getTipo() {
        return tipo;
    }

    public void setTipo(String tipo) {
        this.tipo = tipo;
    }

    /**
     * @return the columna
     */
    public ColumnMap getColumna() {
        return columna;
    }

    /**
     * @param columna the columna to set
     */
    public void setColumna(ColumnMap columna) {
        this.columna = columna;
    }
    
    public boolean esClave(){
        if(clave==1){return true;}return false;
    }
}
